| 1. | Identity permissions help protect code from unauthorized access 从同一基类派生。 |
| 2. | Otherwise , if the protected code threw an exception , the lock might never be released 否则,如果受保护的代码将抛出异常,锁就有可能永远得不到释放! |
| 3. | Insures that the underlying monitor is released , even if the protected code throws an exception 确保了即使受保护的代码引发异常,也可以释放基础监视器。 |
| 4. | Ensuring that your code s callers cannot trick your code into calling the protected code on their behalf 确保代码的调用方无法以欺骗手段使您的代码为它们调用受保护的代码。 |
| 5. | Might cause problems if the protected code uses an external resource because that code may run simultaneously across multiple application domains 中采用锁则可能引起问题,因为该代码可能跨多个应用程序域同时运行。 |
| 6. | You can t write bulletproof and error - protected code without knowing where the most problematic issues arise ; that s what this and the next few articles focus on 不知道问题的关键在哪里,就不能编写防弹代码和错误检查代码;这正是本文以及后面几篇文章的核心。 |
| 7. | Enables code to demand that its callers possess a digital signature , thus allowing only callers from a particular organization or site to call the protected code 使代码能够要求其调用方拥有数字签名,从而只允许特定组织或特定站点的调用方来调用受保护的代码。 |
| 8. | It is also possible to write tests for untested , package - protected code by putting the tests classes in the same package as the classes they re testing 还可以为未测试的、包保护( package - protected )的代码来编写测试代码,将测试类放到将要测试的类所在那个包中。 |
| 9. | Demanding permissions of all callers at run time affects performance , but it is essential to help protect code from luring attacks by less - trusted code 在运行时要求所有调用方都拥有权限会影响性能,但这对于帮助保护代码免遭受信程度较低的代码的引诱攻击至关重要。 |
| 10. | In other words , callers cannot force the authorized code to pass specific parameters to the protected code , or to get results back from it . interfaces and link demands 换句话说,调用方不能强制被授权的代码向受保护的代码传递特定参数,或从受保护的代码中得到返回结果。 |